package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.wemedia.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouao
 * @date 2022/06/14
 */
@RestController
@RequestMapping("/api/v1/channel")
public class WmchannelController {
    @Autowired
    private WmChannelService service;

    /**
     * 频道分类
     *
     * @return {@link ResponseResult}
     */
    @GetMapping("/channels")
    public ResponseResult findAll() {
        return service.findAll();
    }
}